// 兼容 IE
// https://github.com/zloirock/core-js/blob/master/docs/2019-03-19-core-js-3-babel-and-a-look-into-the-future.md#babelpolyfill
import 'core-js/stable'
import 'regenerator-runtime/runtime'


import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 封装缓存的方法
import { setStore, getStore, removeStore } from './utils/storage'
Vue.prototype.$setStore = setStore
Vue.prototype.$getStore = getStore
Vue.prototype.$removeStore = removeStore


// 设置 js中可以访问 $cdn
import { $cdn } from '@/config'
Vue.prototype.$cdn = $cdn

import $http from '@/utils/request'
Vue.prototype.$http=$http

import Share from 'components/share.js';
Vue.prototype.share=Share;


// 复制到剪贴板
import VueClipboard from 'vue-clipboard2'
Vue.use(VueClipboard)

// 全局引入按需引入UI库 vant
import '@/plugins/vant'
// 引入全局样式
import '@/assets/css/index.scss'
import { Form } from 'vant';
Vue.use(Form);

// 移动端适配
import 'lib-flexible/flexible.js'



// filters
import './filters'
import VueCookies from 'vue-cookies'
Vue.config.productionTip = false
Vue.use(VueCookies)

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
